@extends('users.app')
@section('title', '视频地址管理')
@section('content')
  <div class="col-12 col-md-6 ">

  <div class="card">
    <div class="card-header border-bottom">
      <h4 class="card-title">视频地址{{$video->id ? '修改' : '添加'}}</h4>
    </div>

    <div class="card-body">
      @include('common.error')
      @if($video->id)
      <form class="form" action="{{ route('videos.update', $video->id) }}" method="POST" accept-charset="UTF-8">
        <input type="hidden" name="_token" value="{{ csrf_token() }}">
        <input type="hidden" name="_method" value="PUT">
      @else
      <form class="form" action="{{ route('videos.store') }}" method="POST" accept-charset="UTF-8">
        <input type="hidden" name="_token" value="{{ csrf_token() }}">
      @endif
        <div class="form-group">
          <label for="username2">视频地址</label>
          <input class="form-control" name="link" id="username2" value="{{ old('link', $video->link) }}">
        </div>
        <button type="submit" class="btn btn-common">提交</button>
      </form>
    </div>
</div>
@stop
